package com.jiaozi.core.table.entity;

import com.jiaozi.core.table.annotation.QueryColumn;
import com.jiaozi.core.table.enums.QueryColumnTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ZjQueryColumn {
    //字段名称 对应列内容的字段名
    String prop;
    //显示的标题
    String label;
    int order;
    QueryColumnTypeEnum type;
    public ZjQueryColumn(String prop, QueryColumn column){
        this.prop=prop;
        this.label=column.label();
        this.order=column.order();
        this.type=column.type();

    }
}
